package com.tuo51.evaluate.vo;

import com.tuo51.core.domain.org.Organization;
import com.tuo51.core.domain.staffs.Staff;
import com.tuo51.evaluate.domain.appusers.RedeemCode;
import com.tuo51.evaluate.domain.appusers.StaffRedeemCode;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.util.Date;

@Data
public class StaffRedeemRecord  {
	private String id;

	private Date created = new Date();

	private Boolean deleted = false;

	Staff staff;

	RedeemCode redeemCode;

	Organization org;

	private Long productId;  // always leads to vip id

	private String comment;

	public static StaffRedeemRecord of(StaffRedeemCode staffRedeemCode){
		StaffRedeemRecord ret = new StaffRedeemRecord();

		CopyUtils.copyProperties(staffRedeemCode, ret);

		return ret;
	}
}
